package com.yto.cn.map.node;

/**
 * @author dongxing
 **/
public class Node {

    private Object item;
    private Node next;

    public Node(Object item, Node next) {
        this.item = item;
        this.next = next;
    }

    public static void main(String[] args) {
        Node node1 = new Node(new Object(), null);
        Node node = new Node(new Object(), null);
        //指向尾
        node1.next = node;
        //指向头
        Node node3 = new Node(new Object(), node1);
    }
}
